Skip to content

refactor: replace writer(new DefaultPrettyPrinter()) with writerWithDefaultPrettyPrinter() - #5252

Merged
ewaostrowska merged 2 commits into
swagger-api:masterfrom
vpelikh:writerWithDefaultPrettyPrinter
Jul 30, 2026
Merged

refactor: replace writer(new DefaultPrettyPrinter()) with writerWithDefaultPrettyPrinter()#5252
ewaostrowska merged 2 commits into
swagger-api:masterfrom
vpelikh:writerWithDefaultPrettyPrinter

Conversation

@vpelikh

@vpelikh vpelikh commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Description

Replace explicit DefaultPrettyPrinter instantiation with the equivalent writerWithDefaultPrettyPrinter() convenience method across the codebase. This is a pure refactoring — no behavioral change.

This also reduces diff noise from the Jackson 3 migration PR (#5031) by pulling out the writerWithDefaultPrettyPrinter refactoring into its own change.

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • ♻️ Refactor (non-breaking change)
  • 🧪 Tests
  • 📝 Documentation
  • 🧹 Chore (build or tooling)

Checklist

  • I have added/updated tests as needed
  • I have added/updated documentation where applicable
  • The PR title is descriptive
  • The code builds and passes tests locally
  • I have linked related issues (if any)

Screenshots / Additional Context

@ewaostrowska
ewaostrowska force-pushed the writerWithDefaultPrettyPrinter branch 3 times, most recently from 5851436 to eb369c8 Compare July 30, 2026 07:20
@vpelikh

vpelikh commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

@ewaostrowska thanks for the test! CI crashed due to Jackson's vulnerability.

@ewaostrowska
ewaostrowska force-pushed the writerWithDefaultPrettyPrinter branch from eb369c8 to 024a2d4 Compare July 30, 2026 08:27
@ewaostrowska
ewaostrowska merged commit 7d14a26 into swagger-api:master Jul 30, 2026
7 checks passed
@vpelikh
vpelikh deleted the writerWithDefaultPrettyPrinter branch July 30, 2026 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants